home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / what's new? / sample code / graphics 3d / setupgl / setupdsp.h < prev    next >
Encoding:
Text File  |  1999-12-18  |  4.1 KB  |  95 lines

  1. /*
  2.     File:        SetupDSp.h
  3.  
  4.     Contains:    Functions to enable building and destorying a DSp fullscreen context
  5.  
  6.     Written by:    Geoff Stahl (ggs)
  7.  
  8.     Copyright:    Copyright © 1999 Apple Computer, Inc., All Rights Reserved
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>    12/18/99    ggs     Fix headers
  13.          <1>    11/28/99    ggs     Initial add.  Split of just DSp handling functions.  Added total
  14.                                     device RAM checks, better step downs using actual supported
  15.                                     resolutions. Need to add user verify for contexts that require
  16.                                     it, integration of this in context step down, and a freq bit
  17.                                     field.
  18.          <1>    11/11/99    ggs     Initial Add
  19.  
  20.     Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  21.                 ("Apple") in consideration of your agreement to the following terms, and your
  22.                 use, installation, modification or redistribution of this Apple software
  23.                 constitutes acceptance of these terms.  If you do not agree with these terms,
  24.                 please do not use, install, modify or redistribute this Apple software.
  25.  
  26.                 In consideration of your agreement to abide by the following terms, and subject
  27.                 to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  28.                 copyrights in this original Apple software (the "Apple Software"), to use,
  29.                 reproduce, modify and redistribute the Apple Software, with or without
  30.                 modifications, in source and/or binary forms; provided that if you redistribute
  31.                 the Apple Software in its entirety and without modifications, you must retain
  32.                 this notice and the following text and disclaimers in all such redistributions of
  33.                 the Apple Software.  Neither the name, trademarks, service marks or logos of
  34.                 Apple Computer, Inc. may be used to endorse or promote products derived from the
  35.                 Apple Software without specific prior written permission from Apple.  Except as
  36.                 expressly stated in this notice, no other rights or licenses, express or implied,
  37.                 are granted by Apple herein, including but not limited to any patent rights that
  38.                 may be infringed by your derivative works or by other works in which the Apple
  39.                 Software may be incorporated.
  40.  
  41.                 The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  42.                 WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  43.                 WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  44.                 PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  45.                 COMBINATION WITH YOUR PRODUCTS.
  46.  
  47.                 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  48.                 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  49.                 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  50.                 ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  51.                 OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  52.                 (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  53.                 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  54.  
  55. */
  56.  
  57.  
  58. // Usage notes: 
  59.  
  60.  
  61.  
  62. // include control --------------------------------------------------
  63.  
  64. #ifndef SetupDSp_h
  65. #define SetupDSp_h
  66.  
  67.  
  68. // includes ---------------------------------------------------------
  69.  
  70. #include <DrawSprocket.h>
  71.  
  72. //#include <agl.h>
  73.  
  74. #include "SetupGL.h"
  75.  
  76.  
  77. // structures (public) -----------------------------------------------
  78.  
  79.  
  80. // public function declarations -------------------------------------
  81.  
  82. OSStatus StartDSp (void);
  83. void ShutdownDSp (void);
  84.  
  85. OSStatus BuildDSpContext (DSpContextReference* pdspContext, GDHandle hGD, GLint depthSizeSupport, pstructGLInfo pcontextInfo);
  86. void DestroyDSpContext (DSpContextReference* pdspContext);
  87.  
  88. OSStatus DSpContext_CustomFadeGammaOut (DSpContextReference inContext, const RGBColor *fadeColor, long fadeTicks); 
  89. OSStatus DSpContext_CustomFadeGammaIn (DSpContextReference inContext, const RGBColor *fadeColor,  long fadeTicks);
  90.  
  91. extern Boolean gDSpStarted;
  92. extern Boolean gNeedFade;
  93.  
  94.  
  95. #endif // SetupDSp_h